-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix user creation using LDAP Plugin #12452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix user creation using LDAP Plugin #12452
Conversation
Signed-off-by: Arthur Schiwon <[email protected]>
53180dc to
3d332c3
Compare
|
@viniciuscb sorry, I missed this PR. Ideally, next time ping the @nextcloud/ldap group, to ensure it does not get buried. |
Hi @blizzz I will take a look and test it in master. |
|
Any updates, @viniciuscb? The feature freeze for Nextcloud 16 is today, hence I'm afraid we have to move this to 17. |
|
@ChristophWurst it's a bug fix, therefore the freeze does not apply here |
3d332c3 to
9a4b5c9
Compare
Signed-off-by: Vinicius Cubas Brand <[email protected]>
9a4b5c9 to
62ab9e0
Compare
|
@blizzz @ChristophWurst took a review according to @blizzz recommendations, tested in local (creating a ldap user / group), have run the automated tests, all worked. |
This commit fix an error happening when the subadmin tries to create an user, adding him/her to the group s/he is subadmin of, using a LDAP User/Group plugin. This just forces the cache to be reset after an user is added to a group. Signed-off-by: Vinicius Cubas Brand <[email protected]>
|
I plan to review tomorrow |
blizzz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one remark, good otherwise!
MorrisJobke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code makes sense 👍
LDAP plugins must change the createUser method to return the DN, as we need this to update the cache. Signed-off-by: Vinicius Cubas Brand <[email protected]>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
/backport to stable15 |
|
/backport to stable14 |
Status of 17004: failureENABLE_OPENLDAP=true, ENABLE_REDIS=true, TESTS=integration-ldap-openldap-features
Show full logENABLE_OPENLDAP=true, ENABLE_REDIS=true, TESTS=integration-ldap-openldap-numerical-id-features
Show full log |
|
@viniciuscb @blizzz Looks like there is something wrong with the tests :/ |
|
rebase might solve it |
|
Rebased on master: #14778 |
When upgrading our installation to nextcloud14 we could not anymore create users in LDAP.
These are changes in user_ldap app that needed to be made to the createUser in the plugin work again.
We needed to change the createUser function in our plugin also, now it returns the user DN in LDAP, instead of returning a boolean. Other developers who created a plugin for LDAP will need to change this also.
Their code will break anyway when they try to upgrade to nc14, so we are now throwing an exception when the custom createUser function returns true.
Here is our plugin code:
https://gitlab.com/eita/rios/user_ldap_extended/tree/nc14